import Http from "../utils/Http";


class Service {
    // static getServiceList(page = 1, count = 10, category_id = null, type = ""){
    //     return Http.request({
    //         url: `/v1/service/list?page=${page}&count=${count}&category_id=${category_id || ""}&type=${type || ""}`,
    //         method: 'GET',
    //     })
    // }
    static getServiceList(page = 1, count = 10, category_id = null, type = ""){
        return Http.request({
            url: '/v1/service/list',
            method: 'GET',
            data: {
                page: page,
                count: count,
                category_id: category_id || "",
                type: type || "",
            }
        })
    }
    static reset(){
        this.data = []
        return this
    }
}


export default Service